package com.iatinspur.service.iml;

import com.iatinspur.dubbo.service.ProviderService;
import com.iatinspur.pojo.Person;
import org.apache.dubbo.config.annotation.DubboService;


@DubboService(version = "1.0.0")
public class ProviderServiceIml implements ProviderService {
    private String name = "银飞";

    @Override
    public String getInfo() {
        return this.name;
    }

    @Override
    public String detail(Person person) {
        return this.name+"-->name:"+person.getName()+",age:"+person.getAge();
    }

    @Override
    public Person getPerson(Integer age) {
        Person person = new Person();
        person.setAge(age);
        person.setName(this.name);
        return person;
    }
}
